package routers

import (
	"github.com/gin-gonic/gin"
	v1 "perfect-admin/api/v1"
	"perfect-admin/middleware"
)

func InitMessageRouter(Router *gin.RouterGroup)  {
	MessageRouter := Router.Group("message").Use(middleware.JWTAuth())
	{
		MessageRouter.GET("/getMessageList", v1.GetMessageList)
		MessageRouter.PUT("/updateMessageIsRead", v1.UpdateMessageIsRead)
		MessageRouter.GET("/getMessageCount", v1.GetMessageCount)
	}
}

